@extends('site.layouts.content')
{{-- Web site Title --}}
@section('title')
Noticias
@parent
@stop

{{-- Content --}}
@section('content-left')
<!-- =========== Section 2 =========== -->
                
                        <div class="col-sm-12">
                            <!-- Main Blog Items -->
                            <div class="section-container main-page-content clearfix">

                                <div class="section-content">

                                    <h1 class="page_title">Noticias</h1>

                                    <!-- Blog List -->
                                    <div class="blog-articles-container clearfix">
                                        {{--*/ $entradas = Entrada::where('categoria','=','noticias')->paginate(6) /*--}}

                                        @foreach($entradas as $entrada)
                                        <!-- Blog Single Article -->
                                        <article class="blog-article clearfix">
                                            <div class="blog-article-content clearfix">
                                                <h3 class="title">{{$entrada->titulo}}</h3>
                                                <div class="meta clearfix">
                                                    <div class="meta-item date"><span class="glyphicon glyphicon-time"></span> {{$entrada->created_at}}</div>
                                                </div><!-- .meta -->

                                                <div class="text-content excerpt clearfix">
                                                    <p>{{$entrada->contenido}} </p>

                                                </div>
                                                @foreach($entrada->urls as $enlace)
                                                    <a href="{{asset('entradas/'.$enlace->url)}}" class="feature-image img-mask-effect zoom photo_link">
                                                        <img src="{{asset('entradas/'.$enlace->url)}}" alt="Lighthouse">
                                                        <i class="mask"><span class="glyphicon glyphicon-plus-sign large"></span></i>
                                                    </a>
                                                @endforeach
                                            </div><!-- .blog-article-content -->
                                        </article><!-- .blog-article -->
                                        @endforeach
                                    </div><!-- .blog-articles-container -->
                                    <!-- End: Blog List -->

                                    <!-- Pagination -->
                                    <div class="pagination-container center clearfix">
                                        <ul class="pagination-list">
                                            {{$entradas->links()}}
                                        </ul>
                                    </div><!-- .pagination-container -->

                                </div><!-- .section-content -->

                            </div><!-- .section-container -->
                            <!-- End: Main Blog Items -->
                        
                </div><!-- .container-fluid -->
                <!-- End: Section 2 -->
@stop